﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;

namespace QD.Entity
{
    [JsonObject(MemberSerialization.OptIn)]
    public class ColumnSchema
    {
        [JsonProperty]
        public string Name { get; set; }
        [JsonProperty]
        public int Length { get; set; }
        [JsonProperty]
        public int Precision { get; set; }
        [JsonProperty]
        public bool AllowNull { get; set; }
        [JsonProperty]
        public bool IsPrimaryKey { get; set; }

        public Type DataType { get; set; }
        [JsonProperty]
        public bool AutoInCrement { get; set; }
        [JsonProperty]
        public string OriginalType { get; set; }

        [JsonProperty]
        public String Description { get; set; }
    }
}
